-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add yamux support #2397
feat: add yamux support #2397
Conversation
You can find the image built from this PR at
Built from 211348f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI green but I still have doubts.
In theory nim-libp2p should use Yamux for go-libp2p interop and fall back to Mplex if needed right?
Does this need to be tested more? Maybe I'm paranoid :P
I tried using |
If a peer supports both mplex and yamux, then yamux would be used right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for it! Just some naïve questions :)
How the stream multiplexer is being picked up? Does it first try to use mplex
and if the other peer doesn't support it, then it tries with yamux
?
@chaitanyaprem @Ivansete-status So with the changes of this PR, if for ex, if go-waku returns via identify protocol the muxers protocol ids in this order: We could switch the order, but i went with mplex by default, since that's what nwaku nodes out there in the wild are using, and eventually just use yamux? |
Description
Added support to yamux. Since the order of multiplexers matter, it's added after mplex so it continues being the default multiplexer (instead of completely removing mplex, as suggested in the og issue). This is required since go-libp2p is removing support for mplex.
Closes #2331